/**
 * 分模块的页面路由地址
 * * */
const order = [
  {
    path: 'add-goods-basic', //访问地址/goods/list
    name: 'addGoodsbasic', //权限控制的
    hidden: true,
    meta: {
      title: '新增商品',
      name: '新增商品资料'
    },
    component: () => import('@/views/goods/add-goods-basic/index.vue')
  },
  {
    path: 'list', //访问地址/goods/list
    name: 'goodslist', //权限控制的
    hidden: true,
    meta: {
      title: '基础资料',
      name: '新增在售商品'
    },
    component: () => import('@/views/goods/index.vue')
  },
  {
    //系统管理
    path: 'manage',
    name: 'manage',
    hidden: true,
    meta: {
      title: '商品管理',
      isThree: true, //标记是不是三级菜单
      redirectPath: '/goods/manage/list', //指定跳转到那一个子路由
      activeMenu: '/goods/manage' //设置高亮
    },
    children: [
      {
        path: 'list', //访问地址
        fullPath: '/goods/manage/list', //全路径
        name: 'list', //权限控制的
        hidden: false,
        meta: {
          title: '在售商品',
          name: '在售商品',
          isThree: false //标记三级菜单--
        },
        component: () => import('@/views/goods/manage/list/index.vue')
      },
      {
        path: 'add',
        fullPath: '/goods/manage/add', //全路径
        name: 'add',
        meta: {
          title: '新增在售商品',
          name: '新增在售商品',
          activeMenu: '/goods/manage', //三级用得到---1级2级不需要设置父路径
          isThree: false //标记三级菜单--
        },
        hidden: false,
        component: () => import('@/views/goods/manage/add/index.vue')
      },
      {
        path: 'classify',
        fullPath: '/goods/manage/classify',
        name: 'classify',
        hidden: false,
        meta: {
          title: '商品分类',
          name: '商品分类',
          activeMenu: '/goods/manage', //三级用得到---1级2级不需要设置父路径
          isThree: false //标记三级菜单
        },
        component: () => import('@/views/goods/manage/classify/index.vue')
      }
    ]
  }
]

export default order
